package com.linyx.simpleboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
	
	@GetMapping(value = "/hello")
	public String hello(Model model) {
		String name = "jiangbei";
		model.addAttribute("name", name);
		return "hello";
	}

}
